package com.adaxi.adc.business.manager.controller;

import com.adaxi.adc.business.manager.pojo.RoutePrice;
import com.adaxi.adc.business.manager.service.RoutePriceService;
import com.adaxi.adc.common.common.CommonResult;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class RoutePriceController {

    @Autowired
    RoutePriceService routePriceService;

    @GetMapping(value = "/routePrice")
    @ApiOperation(value = "行程路线查询",notes = "行程路线查询")
    public CommonResult routePrice(){
        List<RoutePrice> ro=routePriceService.list();
        return CommonResult.SUCCESS("行程路线查询成功",ro);

    }
}
